package com.ies.dx.dex.file;

import com.ies.dx.util.Hex;
import com.ies.dx.util.Input;

public class type_id_item extends dex_item
{
    private int descriptor_idx; //uint    
    
    public type_id_item(dex_file file)
    {
        super(file);        
    }

    public void read(Input dis)
    {
        try
        {
            descriptor_idx = dis.readInt();
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        
    }

    public void show()
    {
        System.out.println("[descriptor]: " + descriptor_idx + " (0x" + Hex.u4(descriptor_idx) + ")" + getData());
    }

    public String getData() 
    {
        return mFile.getString(descriptor_idx);
    }

    @Override
    public void readData(Input dis)
    {
        // TODO Auto-generated method stub
        
    }
    
    
}
